#ifndef WHALEBUTTON_H
#define WHALEBUTTON_H

// #include "../logic/whaleplugin.h"

#include <QLabel>

class QMouseEvent;
class WhalePlugin;

// a button used by plugins to add a new tab
class WhaleButton : public QLabel {
    Q_OBJECT 

    public:
        WhaleButton( QWidget * parent = 0 );
        void setPlugin( WhalePlugin * plugin );
        WhalePlugin * plugin();

    signals:
        void clicked();

    private:
        void mousePressEvent( QMouseEvent * event );

        WhalePlugin * mPlugin;
};

#endif
